import { defHttp } from "@/utils/http";

// ERP 药品库存预警 API
export const invtAlertsApi = {
	// 获得药品库存预警分页
	invtAlertsList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-alerts/page`, params });
	},
	// 新增药品库存预警
	invtAlertsCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-alerts/create`, data });
	},

	// 修改药品库存预警
	invtAlertsUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-alerts/update`, data });
	},

	// 删除药品库存预警
	invtAlertsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-alerts/delete?id=` + id });
	}
};
